package 集合.map;

import java.util.Objects;

public class Student {
    private Integer num;

    public Student() {

    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof Student)) {
            return false;
        }
        Student student = (Student) o;
        boolean a = Objects.equals(num, student.num);
        return a;
    }

    @Override
    public int hashCode() {
        return Objects.hash(num);
    }
}
